const initialState: TodoReducer.State = {
  todoItems: [
    {
      id: 0,
      groupId: 1,
      content: '测试1',
      checked: false,
      createdAt: new Date().toString()
    },
    {
      id: 1,
      groupId: 2,
      content: '测试2',
      checked: false,
      createdAt: new Date().toString()
    },
    {
      id: 2,
      groupId: 2,
      content: '测试3',
      checked: true,
      createdAt: new Date().toString()
    },
    {
      id: 3,
      groupId: 3,
      content: '测试4',
      checked: false,
      createdAt: new Date().toString()
    },
    {
      id: 4,
      groupId: 4,
      content: '测试5',
      checked: false,
      createdAt: new Date().toString()
    }
  ]
};

export default function todoReducer<T>(state = initialState, action: StoreTypes.Action<TodoReducer.ActionTypes, T>) {
  const { type } = action;
  switch (type) {
    default:
      return state;
  }
}
